<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- /fasttmp/mkdist-qt-4.3.5-1211793125/qtopia-core-opensource-src-4.3.5/src/gui/embedded/qwsevent_qws.cpp -->
<head>
  <title>Qt 4.3: QWSEvent Class Reference</title>
  <link href="classic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" valign="top" width="32"><a href="http://www.trolltech.com/products/qt"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></a></td>
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="mainclasses.html"><font color="#004faf">Main&nbsp;Classes</font></a>&nbsp;&middot; <a href="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a>&nbsp;&middot; <a href="modules.html"><font color="#004faf">Modules</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
<td align="right" valign="top" width="230"><a href="http://www.trolltech.com"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></a></td></tr></table><h1 align="center">QWSEvent Class Reference<br /><sup><sup>[<a href="qtgui.html">QtGui</a> module]</sup></sup></h1>
<p>The QWSEvent class encapsulates an event in Qtopia Core. <a href="#details">More...</a></p>
<pre> #include &lt;QWSEvent&gt;</pre><ul>
<li><a href="qwsevent-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-types"></a>
<h3>Public Types</h3>
<ul>
<li><div class="fn"/>enum <b><a href="qwsevent.html#Type-enum">Type</a></b> { NoEvent, Connected, Mouse, Focus, ..., Embed }</li>
</ul>
<a name="details"></a>
<hr />
<h2>Detailed Description</h2>
<p>The QWSEvent class encapsulates an event in Qtopia Core.</p>
<p>When running a <a href="qtopiacore.html">Qtopia Core</a> application, it either runs as a server or connects to an existing server. All system generated events are passed to the server application which then propagates the event to the appropriate client.</p>
<p>Whenever the server receives an event, it queries its stack of top-level windows to find the window containing the event's position. Each window can identify the client application that created it, and returns its ID to the server upon request. Finally, the server forwards the event, encapsulated by an instance of the QWSEvent class, to the appropriate client.</p>
<p align="center"><img src="images/qtopiacore-client.png" /></p><p>The server communicates with the client applications over the UNIX domain socket. You can retrieve direct access to all the events a client receives from the server, by reimplementing <a href="qapplication.html">QApplication</a>'s <a href="qapplication.html#qwsEventFilter">qwsEventFilter()</a> function.</p>
<p>QWSEvent provides the <a href="qwsevent.html#Type-enum">Type</a> enum specifying the origin of the event. Internally, each type is represented by a QWSEvent subclass, e.g&#x2e;, <tt>QWSKeyEvent</tt>.</p>
<p>See also <a href="qwsserver.html">QWSServer</a>, <a href="qwsclient.html">QWSClient</a>, and <a href="qtopiacore-architecture.html">Qtopia Core Architecture</a>.</p>
<hr />
<h2>Member Type Documentation</h2>
<h3 class="fn"><a name="Type-enum"></a>enum QWSEvent::Type</h3>
<p>This enum describes the origin of the event.</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>QWSEvent::NoEvent</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">No event has occurred.</td></tr>
<tr><td valign="top"><tt>QWSEvent::Connected</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">An application has connected to the server.</td></tr>
<tr><td valign="top"><tt>QWSEvent::Mouse</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">A mouse button is pressed or released, or the mouse cursor is moved. See also <a href="qtopiacore-pointer.html">Qtopia Core Pointer Handling</a>.</td></tr>
<tr><td valign="top"><tt>QWSEvent::Focus</tt></td><td align="center" valign="top"><tt>3</tt></td><td valign="top">A window has lost or received focus.</td></tr>
<tr><td valign="top"><tt>QWSEvent::Key</tt></td><td align="center" valign="top"><tt>4</tt></td><td valign="top">A key is pressed or released. See also <a href="qtopiacore-charinput.html">Qtopia Core Character Input</a>.</td></tr>
<tr><td valign="top"><tt>QWSEvent::Region</tt></td><td align="center" valign="top"><tt>5</tt></td><td valign="top">A region has changed.</td></tr>
<tr><td valign="top"><tt>QWSEvent::Creation</tt></td><td align="center" valign="top"><tt>6</tt></td><td valign="top">The server has created an ID, typically for a window.</td></tr>
<tr><td valign="top"><tt>QWSEvent::PropertyNotify</tt></td><td align="center" valign="top"><tt>7</tt></td><td valign="top">A property has changed.</td></tr>
<tr><td valign="top"><tt>QWSEvent::PropertyReply</tt></td><td align="center" valign="top"><tt>8</tt></td><td valign="top">The server is responding to a request for a property's value.</td></tr>
<tr><td valign="top"><tt>QWSEvent::SelectionClear</tt></td><td align="center" valign="top"><tt>9</tt></td><td valign="top">A selection is deleted.</td></tr>
<tr><td valign="top"><tt>QWSEvent::SelectionRequest</tt></td><td align="center" valign="top"><tt>10</tt></td><td valign="top">The server has queried for a selection.</td></tr>
<tr><td valign="top"><tt>QWSEvent::SelectionNotify</tt></td><td align="center" valign="top"><tt>11</tt></td><td valign="top">A new selection has been created.</td></tr>
<tr><td valign="top"><tt>QWSEvent::MaxWindowRect</tt></td><td align="center" valign="top"><tt>12</tt></td><td valign="top">The server has changed the maximum window for an application.</td></tr>
<tr><td valign="top"><tt>QWSEvent::QCopMessage</tt></td><td align="center" valign="top"><tt>13</tt></td><td valign="top">A new Qt Cop message has appeared. See also <a href="qcopchannel.html">QCopChannel</a></td></tr>
<tr><td valign="top"><tt>QWSEvent::WindowOperation</tt></td><td align="center" valign="top"><tt>14</tt></td><td valign="top">A window operation, e.g&#x2e; resizing, has occurred.</td></tr>
<tr><td valign="top"><tt>QWSEvent::IMEvent</tt></td><td align="center" valign="top"><tt>15</tt></td><td valign="top">An input method has been used to enter text for languages with non-Latin alphabets. See also <a href="qwsinputmethod.html">QWSInputMethod</a>.</td></tr>
<tr><td valign="top"><tt>QWSEvent::IMQuery</tt></td><td align="center" valign="top"><tt>16</tt></td><td valign="top">An input method query for a specified property has occurred. See also <a href="qwsinputmethod.html">QWSInputMethod</a>.</td></tr>
<tr><td valign="top"><tt>QWSEvent::NEvent</tt></td><td align="center" valign="top"><tt>20</tt></td><td valign="top">The number of events has changed.</td></tr>
<tr><td valign="top"><tt>QWSEvent::Embed</tt></td><td align="center" valign="top"><tt>18</tt></td><td valign="top">An event used internally to implement embedded windows. See also <a href="qwsembedwidget.html">QWSEmbedWidget</a>.</td></tr>
</table></p>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="30%">Copyright &copy; 2008 <a href="trolltech.html">Trolltech</a></td>
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
<td width="30%" align="right"><div align="right">Qt 4.3.5</div></td>
</tr></table></div></address></body>
</html>
